package com.ebeijia.service.admin.impl;

import javax.annotation.Resource;

import com.ebeijia.service.admin.UserManageService;
import org.springframework.stereotype.Service;

import com.ebeijia.mybatis.mapper.UserManageMapper;
import com.ebeijia.mybatis.pojo.UserManage;
import com.ebeijia.util.MD5;

/**
 * Created by YPJ on 2016/5/12.
 */
@Service
public class UserManageServiceImpl implements UserManageService {

    @Resource
    private UserManageMapper userManageMapper;

    @Override
    public UserManage selectByAccount(UserManage userManage) {
        String md5Pwd = MD5.toMD5(userManage.getPwd());
        userManage.setPwd(md5Pwd);
        return userManageMapper.selectByAccount(userManage);
    }
}
